package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.DepartmentDao;
import cn.edu.sdjzu.xg11.domain.Department;

@Service
public class DepartmentService {
	@Autowired
	private DepartmentDao departmentDao;

	public Collection<Department> getDepartments() {
		return departmentDao.getDepartments();
	}
	
	public Department getDepartment(Integer id){
		return departmentDao.getDepartment(id);
	}
}
